import React from 'react';
import ReactDOM from 'react-dom/client';
import {
    RouterProvider
} from 'react-router-dom'
import {Provider} from 'react-redux'
import '@/index.scss';
// import App from './App';
import store from '@/store'

import router from '@/router'

// const router = createBrowserRouter([{
//     path: '/',
//     element: <div>Hellow react-router</div>
// }, {
//     path: '/login',
//     element: <div>Login</div>
// }])

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <Provider store={store}>
        <RouterProvider router={router}></RouterProvider>
    </Provider>
);